package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_actuser table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_actuser"
 */

public abstract class BaseCnActuser  implements Serializable {

	public static String REF = "CnActuser";
	public static String PROP_STATUS = "Status";
	public static String PROP_ACTID = "Actid";
	public static String PROP_YQRID = "Yqrid";
	public static String PROP_JOINTIME = "Jointime";
	public static String PROP_USERID = "Userid";
	public static String PROP_ID = "Id";
	public static String PROP_FLFLAG = "Flflag";

	// constructors
	public BaseCnActuser () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnActuser (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String actid;
	private java.lang.String userid;
	private java.lang.String yqrid;
	private java.lang.String status;
	private java.util.Date jointime;
	private java.lang.String flflag;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}


	public java.lang.String getYqrid() {
		return yqrid;
	}

	public void setYqrid(java.lang.String yqrid) {
		this.yqrid = yqrid;
	}

	/**
	 * Return the value associated with the column: ACTID
	 */
	public java.lang.String getActid () {
		return actid;
	}

	/**
	 * Set the value related to the column: ACTID
	 * @param actid the ACTID value
	 */
	public void setActid (java.lang.String actid) {
		this.actid = actid;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: JOINTIME
	 */
	public java.util.Date getJointime () {
		return jointime;
	}

	/**
	 * Set the value related to the column: JOINTIME
	 * @param jointime the JOINTIME value
	 */
	public void setJointime (java.util.Date jointime) {
		this.jointime = jointime;
	}

	public java.lang.String getFlflag() {
		return flflag;
	}

	public void setFlflag(java.lang.String flflag) {
		this.flflag = flflag;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnActuser)) return false;
		else {
			com.lovejes.cuniao.domain.CnActuser cnActuser = (com.lovejes.cuniao.domain.CnActuser) obj;
			if (null == this.getId() || null == cnActuser.getId()) return false;
			else return (this.getId().equals(cnActuser.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}